package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.AuthPersonalAddress;
import com.vcredit.creditcat.persistence.AuthPersonalAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liaoshengjun on 2017/8/8.
 */
@Service
public class AuthPersonalAddressService {
	@Autowired
	private AuthPersonalAddressMapper mapper;
	public void insert(AuthPersonalAddress obj){mapper.insert(obj);}
	public void update(AuthPersonalAddress obj){mapper.update(obj);}
	public AuthPersonalAddress findById(Long addressId){return mapper.findById(addressId);}
	public List<AuthPersonalAddress> findByCustId(Long custId,Integer addressType){
		return mapper.findByCustId(custId,addressType);
	}
}
